import request from '/@/utils/request';
export function companyApi() {
	return {
		index: (params) => {
			return request({
				url: '/group/company/index',
				method: 'get',
				params
			});
		},
		add: (data) => {
			return request({
				url: '/group/company/add',
				method: 'post',
				data,
			});
		},
        edit: (data) => {
			return request({
				url: '/group/company/edit',
				method: 'post',
				data,
			});
		},
        del: (data) => {
			return request({
				url: '/group/company/del',
				method: 'post',
				data,
			});
		},

		company_conf: (params) => {
			return request({
				url: '/group/company_conf/index',
				method: 'get',
				params
			});
		},
		company_conf_edit: (data,id) => {
			return request({
				url: '/group/company_conf/conf?id='+id,
				method: 'post',
				data,
			});
		},
	};
}